<template>
	<!-- 产品分类导航 -->
	<view class="wrap" v-if="content">
		<!-- 导航栏 -->
		<shopro-navbar :isBack="true">
			<view class="u-flex-1 u-flex  u-row-center u-col-center" slot="content">
				<view style="font-weight:bold">{{title}}</view>
			</view>
		</shopro-navbar>
		<view class="menu-category-box u-m-b-20">
			<view v-if="content != ''" v-html="content">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				title: '',
				content:'',
				id:''
			};
			
		},
		onLoad(option) {
			this.id = option.id;
			this.title = decodeURIComponent(option.title)
			console.log("哈哈：",option)
			this.getServe()
		},
		created() {
			
		},
		methods: {
			getServe() {
				let that = this;
				that.$https(
						'category.serveInfo', {
							id: this.id
						}
					)
					.then(res => {
						if (res.code === 1) {
							this.content = res.data.content;
						}
					});
			},
		}
	};
</script>

<style lang="scss">
	page {
		background: #ffffff;
	}

	.wrap {
		// background: #f1f1f1;
		height: 100%;
	}

	// 产品分类
	.menu-category-box {
		position: relative;
		background: #fff;
		border-radius: 20rpx;
		margin: 20rpx;
		padding-top: 20rpx;

		.titles {
			font-size: 32rpx;
			font-weight: 600;
			margin-left: 18rpx;
		}

		.menu-tab-box {
			.tab-list {
				font-size: 26rpx;
				font-weight: 500;
				color: rgba(51, 51, 51, 1);
				margin: 20rpx 0;

				.tab-img {
					width: 72rpx;
					height: 72rpx;
					margin-bottom: 10rpx;
				}
			}
		}

		.menu-category-dots {
			display: flex;
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
			bottom: 10rpx;

			.category-dot {
				width: 12rpx;
				height: 12rpx;
				background: #eeeeee;
				border-radius: 50%;
				margin-right: 10rpx;
			}

			.category-dot-active {
				width: 12rpx;
				height: 12rpx;
				background: #e9b461;
				border-radius: 50%;
				margin-right: 10rpx;
			}
		}
	}
</style>
